<?php
// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    realpath(APPLICATION_PATH . '/../library/App'),
    realpath(APPLICATION_PATH . '/../library/App/Forms'),
    realpath(APPLICATION_PATH . '/models'),
    get_include_path(),
)));

require_once 'App/MetadataService.php';

$metadataService = new App_MetadataService();
$imageID = $_GET['imageID'];

$results = $metadataService->getMetadata($imageID);

foreach($results as $key => $value)
{
	$counter = 0;
	foreach($value as $k => $v)
	{
		
		if($k != 'MetadataID' && $k !='ImageID' && $k !='Type')
			echo("$v ");
		if($counter % 2)
		{
			echo("<br/>");
		}
		$counter++;
	}
}